#ifndef __MAPPER_H
#define __MAPPER_H
#include"typedef.h"
#include"CartridgeBoard.h"
typedef struct __MAPPER
{
	uint8_t(*read)(struct __MAPPER*,uint16_t);
	void (*write)(struct __MAPPER*,uint16_t, uint8_t);
	CARTRIDGEBOARD* cart;
	uint8_t vram[0x800];
}MAPPER;
bool SwitchMapper(MAPPER** mapper, uint8_t,CARTRIDGEBOARD*);
void MapperFree(MAPPER*);

#endif /*__MAPPER_H*/

